package chapter;

import java.util.Vector;





public class VectorTest {
	

	
	public void myTest ()
	
	{
		int index=0;
		int element=0;
		Vector myVector=new Vector();
		for(index=0;index<10;index++)
		{
			
			element++;
			myVector.add(index, element);
		    System.out.println(myVector.get(index));
		    
		}
		for(index=0;index<10;index+=2)
		{
			System.out.println(myVector.remove(index));
		}
		for(index=0;index<10;index++)
		{
			System.out.println(myVector.get(index));
		}
	}
	
	
     public static void main(String[] args) {
		// TODO Auto-generated method stub
			VectorTest my=new VectorTest();
			my.myTest();
			
			

	}

}
